package adv;

import singleton.CodingTask;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author huangliusong
 * @since 2018/10/22
 * {@link }
 */
public class ExecutorTester {
    public static void main(String[] args) {


        ExecutorService executorService= Executors.newFixedThreadPool(3);

        for (int i=0;i<10;i++){
            executorService.submit(new CodingTask());
        }




    }
}
